﻿@page "/auth/login"
@layout LoginLayout
@attribute [AllowAnonymous]
<div class="main__b__0">
    <div class="login">
        <Form Model="@loginInput" OnFinish="OnLogin" Loading="loading">
            <Tabs ActiveKey="@(context.LoginType.ToString())">
                <TabPane Key="1">
                    <Tab>账户密码登录</Tab>
                    <ChildContent>
                        <FormItem>
                            <AntDesign.Input Placeholder="用户名: admin" Size="large" @bind-Value="@context.UserName">
                                <Prefix><Icon Type="user" /></Prefix>
                            </AntDesign.Input>
                        </FormItem>
                        <FormItem>
                            <AntDesign.Input Placeholder="密码: admin" Size="large" @bind-Value="@context.Password" Type="password">
                                <Prefix><Icon Type="lock" /></Prefix>
                            </AntDesign.Input>
                        </FormItem>
                    </ChildContent>
                </TabPane>
            </Tabs>
            <div>
                <Checkbox @bind-Value="autoLogin">
                    自动登录
                </Checkbox>
                @*<a style="float: right;">
                        忘记密码
                    </a>*@
            </div>
            <Button Type="@ButtonType.Primary" HtmlType="submit" Class="submit" Size="large" Block>登&nbsp;录</Button>
            @*<div class="other">
                    其他登录方式
                    <Icon Type="alipay-circle" />
                    <Icon Type="taobao-circle" />
                    <Icon Type="weibo-circle" />
                    <a class="register" href="/user/register">注册账户</a>
                </div>*@
        </Form>
    </div>
</div>
<AntContainer />
